<tc_include file="Public:head" />
<div class="container" id="container">
    <div class="page">
        <div class="page__bd" style="height: 100%; overflow: hidden;">
            <div class="weui-tab">
                <div class="weui-tab__panel">
                    <header class="weui-bar-nav" style="display: none">
                        <a href="javascript:void(0);" id="back_btn" class="icon iconfont icon-back full-left"></a>
                        <a href="#" class="icon iconfont icon-share full-right"></a>
                    </header>
                    <div class="swiper-container">
                        <!--幻灯片img-->
                        <div class="swiper-wrapper">
                            <volist name="activity_banners" id="banner">
                                <div class="swiper-slide"><img src="<php>echo '/'.C('UPLOADPATH').$banner['banner_img']</php>"></div>
                            </volist>
                        </div>
                        <!--幻灯片img end-->
                        <!-- Add Pagination -->
                        <div class="swiper-pagination right"></div>
                    </div>
                    <article class="weui-article">
                        <h1>{$activity['activity_title']}</h1>
                        <h6>{$activity['activity_intro']}</h6>
                    </article>
                    <div class="weui-cells acticle-list">
                        <div class="weui-cell">
                            <div class="weui-cell__bd">
                                <p><i class="icon iconfont icon-events"></i> <span>活动日期：{$activity['activity_start_time']|strtotime|date="m月d日",###}－{$activity['activity_end_time']|strtotime|date="m月d日",###}</span></p>
                            </div>
                        </div>
                        <div class="weui-cell">
                            <div class="weui-cell__bd">
                                <p><i class="icon iconfont icon-map"></i> <span>活动地点：{$activity['activity_address']}</span></p>
                            </div>
                        </div>
                    </div>
                    <article class="weui-article">
                        <h1>活动介绍</h1>
                        <section>
                            {$activity['activity_detail']}
                        </section>
                    </article>
                </div>

                <tc_include file="Public:menu" />
            </div>
        </div>
    </div>
</div>
<tc_include file="Public:footer" />
<script>
    $("#back_btn").click(function(){
        history.go(-1);
    });
    $(function(){
        var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            slidesPerView: 1,
            paginationClickable: true,
            spaceBetween: 0,
            loop: true,
            autoplay : 2000
        });
    });
</script>
